Skip to content

Add missing items property to schema of read_multiple_files tool #23

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

jochil
Copy link
Collaborator

@jochil jochil commented May 16, 2025

When communicating with an OpenAI (compatible) API the following error will be thrown due a missing property in the json of the tool definition:

error, status code: 400, status: 400 Bad Request, message: Invalid schema for function 'read_multiple_files': In context=('properties', 'paths'), array schema missing items.

Adding the items property fixes this problem

It also corresponds with https://json-schema.org/understanding-json-schema/reference/array#items

@jochil jochil mentioned this pull request May 26, 2025
@ezynda3 ezynda3 merged commit 6d95ed3 into mark3labs:main May 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants